@extends('host.common.common')
@section('head')
    <script>
        var PAGE_DATA = {
            def_classify:{
                classify1:"{{$pid}}",
                classify2:"{{$cid}}",
            },
            pagingObj : {
                total : "0",
                pageSize : "12",
                page : "1"
            },
            main_ad_url: "",
            main_catog_data: $.parseJSON('{!! \App\B2BProject\Custom\Business\GoodsCategory::jsonDataGenerate() !!}'),
        };
    </script>
@stop
@section('body')
    <link rel="stylesheet" href="/assets/b2b/css/common-box.css">
    <!-- top_test -->
    <div id="top_test"></div>

    <!-- web_logo_search -->
    <div id="web_logo_search"></div>

    <!-- comm_nav -->
    <div id="comm_nav"></div>

    <div class="com-w ">
        <div class="com-w-main">
            <div class="top-navigation">
                <span class="top-bg-img clearfix"></span>
                您当前的位置：
                <a href="{{route('host')}}">首页</a>
                > 供应报盘
            </div>
            <div class="top-main-img" style="display: none">
                <img src=""></div>
            <div id="main-tab" class="top-main-btn"></div>
            <div class="supply-offer-shop-list shop-list">
                <div class="head">
                    <ul class="clearfix">
                        <li class="wb25" id="good-type">产品</li>
                        <li class="wb15">
                            单价
                            <a href="javascript:void(0)">
                                <span class="top-bg"></span>
                            </a>
                        </li>
                        <li class="wb10">
                            数量
                            <a href="javascript:void(0)">
                                <span class="top-bg1"></span>
                            </a>
                        </li>
                        <li class="wb10">
                            起订量
                            <a href="javascript:void(0)">
                                <span class="bottom-bg"></span>
                            </a>
                        </li>
                        <li class="wb20">发布日期</li>
                        <li class="wb10">供应商地址</li>
                        <li class="wb10"></li>
                    </ul>
                </div>
                <div class="head-main" id="enquiry_list_all">

                </div>

                <div class="comm-paging" id="comm-paging" style="float: right;"></div>
            </div>

            <div class="clearfix ml20 supply-offer-right">
                <div class="supply-offer-hot-pro com-info-box">
                    <div class="head">
                        <div class="text-left">热销产品</div>
                        <div class="text-right">
                            <a href="{{route('merchant.index')}}">更多></a>
                        </div>
                    </div>
                    <div id="hot_list">

                    </div>
                    <!-- <div class="supply-offer-hot-title clearfix">
                    <div class="h-title f16"></div>
                    <div class="h-more f12">更多</div>
                </div>
                -->

                </div>
                <div class="supply-offer-hot-pro recommend-shop">
                    <div class="supply-offer-hot-title clearfix">
                        <div class="h-title f16">推荐供应商</div>
                        <div class="h-more f12">
                            <a href="{{route('merchant.index')}}">更多></a>
                        </div>
                    </div>
                    <div id="groomsupply_list">

                    </div>
                </div>

            </div>

        </div>
    </div>
    <!-- foot_nav -->
    <div id="foot_nav"></div>
    <div id="bottom_main"></div>
    <script type="text/template" id="hot_shop_templ">
        <% _.each(obj, function(item){ %>
        <div class="common-box1 supply-offer-right-b">
            <div class="box1-img">
                <a href=" <%=item.href%>">
                    <img src="<%=item.imgsrc%>"></a>
            </div>
            <div class="box1-text">
                <a href=" <%=item.href%>">
                    <%=item.title%>
                </a>
            </div>
            <div class="box1-bottom">￥<%=item.price%></div>
        </div>
        <% }); %>
    </script>
    <script type="text/template" id="groomsupply_templ">
        <% _.each(obj, function(item){ %>
        <div class="common-box5 supply-offer-right-b2">
            <div class="box5-img">
                <a href=" <%=item.href%>">
                    <img src="<%=item.imgsrc%>"></a>
            </div>
            <div class="box5-text">
                <div class="box5-text-title">
                    <a href=" <%=item.href%>"><%=item.name%></a>
                </div>
                <div class="box5-text-main">
                    <%=item.title%>
                </div>
            </div>
        </div>
        <% }); %>
    </script>
    <script type="text/template" id="supply_offer_templ">
        <form id="supper_offer_sub" method="post" action="{{route('provider.save')}}" code="">
            <input type="hidden" value="{{csrf_token()}}" name="_token">
            <div class="dialog-div">
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入采购价格" name="price">
                </div>
                <div class="enquiry-input1 enquiry mt10">
                    <input type="text" placeholder="请输入采购数量" name="amount">
                    <span class="f14 c-999 ml10">单位：件</span>
                    <input id="offer_id" style="display: none" type="text" value="" name="offer_id">
                    <input id="max_offer" style="display: none" type="text" value="" name="max_offer">
                </div>
                <div class="enquiry-select mt10 enquiry">
                    <select id="province" name="province_id"></select>
                    <select id="city" name="city_id"></select>
                    <select id="county" name="county_id"></select>
                </div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人姓名" name="contact_name">
                </div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人手机号码" name="contact_phone">
                </div>
                <div class="tc mt15">
                    <input  type="submit" value="询盘" class="btn btn-warn btn-w140x40 lh25" id="inquiry">
                </div>
                <div class="b002 lh20 mt10 " style="width:340px;overflow:hidden">提示：以上均为必填项。
                </div>
            </div>
        </form>
    </script>
    <script type="text/template" id="addr-option-templ">
        <option value="">请选择</option>
        <% _.each(obj, function(item){ %>
        <option value="<%=item.code %>">
            <%=item.text %></option>
        <% }); %>
    </script>
    <script type="text/template" id="enquiry-list-templ">
        <%_.each(obj,function(item) {%>
        <ul class="clearfix">

            <li class="wb25 ellipsis">
                <a href="javascript:void(0)" class="supply-offer-pro-name f14" title="<%=item.name%>"><%=item.name%></a>
            </li>
            <li class="wb15 unit-price f18">￥<%=item.unit_price%></li>
            <li class="wb10 text"><%=item.number%></li>
            <li class="wb10"><%=item.minnum%></li>
            <li class="wb20 release-date"><%=item.release_date%></li>
            <li class="wb10">
                <span class="province"><%=item.supplier_address1%></span>
                <span class="city"><%=item.supplier_address2%></span>

            </li>
            <li class="wb10"> <span class="btn btn-warn btn-w60x32 enquiry-btn sel-enquiry" code="<%=item.enquiry_id%>" maxSupply="<%=item.number%>">询盘</span></li>

        </ul>
        <%});%>
    </script>

    <script type="text/javascript" src="/assets/b2b/js/libs/jquery.validate.min.js"></script>

    <script src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>

    <script type="text/javascript" src="/assets/b2b/js/libs/messages_zh.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/additional-methods.min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/page/common.plugin.js"></script>

    <script src="/assets/b2b/js/pageModules/common/C4.js"></script>
@stop

